package com.xmg.boot.demo.bootlesson1.user.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 *@Author: ma
 *@CreateTime: 2023-11-23
 *@Description: 初始化声明消息队列
 *@Version: 1.0
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue Queue(){
        return new Queue("hello");
    }
}
